import request from "@/utils/request";
/**
 * 疫苗计划列表
 * @param {*} data
 * @returns
 */
export function API_vaccinePlanList(params) {
  return request({
    url: "/vaccinePlan/list",
    method: "get",
    params,
  });
}

/**
 * 疫苗计划新增
 * @returns
 */
export function API_vaccinePlanCreate(data) {
  return request({
    url: "/vaccinePlan/create",
    method: "post",
    data,
  });
}

/**
 * 疫苗计划修改
 * @returns
 */
export function API_vaccinePlanEdit(data) {
  return request({
    url: `/vaccinePlan/edit/${data.code}`,
    method: "put",
    data,
  });
}

/**
 * 疫苗计划删除
 * @returns
 */
export function API_vaccinePlanDelete(data) {
  return request({
    url: `/vaccinePlan/delete/${data.code}`,
    method: "delete",
  });
}

/**
 * 疫苗计划记录
 * @returns
 */
export function API_vaccinePlanGet(params) {
  return request({
    url: "/vaccinePlan/get",
    method: "get",
    params,
  });
}
